home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #3 / Amiga Plus CD - 2002 - No. 03.iso / AmigaPlus / Demos / fxPAINT_Demo / InstallData / Amithlon / run_elf-1.7 / src / elfloader.h < prev    next >
Encoding:
C/C++ Source or Header  |  2002-11-13  |  1.2 KB  |  41 lines

  1. /*
  2.      RUN_ELF - Load and execute big endian ix86 ELF binaries
  3.      Copyright (C) 2001-2002 Martin Blom <martin@blom.org>
  4.      
  5.      This program is free software; you can redistribute it and/or
  6.      modify it under the terms of the GNU General Public License
  7.      as published by the Free Software Foundation; either version 2
  8.      of the License, or (at your option) any later version.
  9.      
  10.      This program is distributed in the hope that it will be useful,
  11.      but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.      GNU General Public License for more details.
  14.      
  15.      You should have received a copy of the GNU General Public License
  16.      along with this program; if not, write to the Free Software
  17.      Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  18. */
  19.  
  20. #ifndef elfloader_h
  21. #define elfloader_h
  22.  
  23. struct ELFDynSymbols
  24. {
  25.     char* name;
  26.     void* addr;
  27. };
  28.  
  29. void*
  30. ELFLoadObject( const char* objname, BPTR* seg, const struct ELFDynSymbols* syms );
  31.  
  32. void
  33. ELFUnLoadObject( void* obj );
  34.  
  35. BOOL
  36. ELFGetSymbol( void* obj,
  37.               const char* name,
  38.               void** ptr );
  39.  
  40. #endif /* elfloader_h */
  41.